<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>一个好网站</title>
    <style>
        /* -------------------整体设置--------------- */
        * {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
            color:#333;
        }

        body {
            background-color: #f5f5f5;
        }

        .w1240 {
            width: 1240px;
            margin: auto;
        }

        /* 顶部导航 */
        .topnav {
            background-color: #333;
            height: 53px;
        }

        /* 顶部的导航 */
        .topnav .w1240 {
            display: flex;
            justify-content: end;

            /* 可以让一行文字垂直居中 */
            height: 53px;
            line-height: 53px;
        }

        .topnav .w1240 a {
            color: #cdcdcd;
            font-size: 14px;
        }

        .topnav .w1240 a:hover {
            color: #27ba9b;
        }

        /* 头部 */
        .topheader {
            background-color: #fff;
        }

        .topheader .w1240 {
            display: flex;
            justify-content: space-between;
            height: 132px;

            align-items: center;

        }

        .topheader .logo {
            width: 200px;
            height: 132px;
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
            background-image: url(./images/logo.png);
        }



        /* 轮播图和侧边栏 */
        .banner {
            height: 500px;
            position: relative;
        }

        .banner .sidebar {
            position: absolute;
            width: 250px;
            height: 500px;
            background-color: rgb(0, 0, 0, 0.5);
        }

        .banner .btn-right {
            position: absolute;
            right: 10px;
            top: 300px;

        }

        .banner .btn-left {
            position: absolute;
            left: 260px;
            top: 300px;


        }

        .banner .index {
            position: absolute;
            bottom: 10px;
            left: 600px;
        }

        /* 主题部分 */
        .main {
            background-color: #fff;
            height: 1000px;
        }

        .main .recommand .title {
            height: 115px;
            line-height: 115px;

            display: flex;
        }

        .main .recommand .title h3 {
            font-size: 32px;
        }

        .main .recommand .title span {
            font-size: 16px;
            color: #999;
            margin-left: 20px;
        }

        .main .recommand .items {
            display: flex;
            justify-content: space-between;
        }

        .main .recommand .item {
            width: 306px;
            text-align: center;
        }

        .main .recommand img {
            width: 100%;
        }

        .main .recommand .item .name {
            font-size: 22px;
            padding-top: 12px;
        }

        .main .recommand .item .desc {
            color: #999;
            font-size: 18px;
            padding-top: 20px;
        }

        .footer {
            background-color: #fff;
        }

        .footer .w1240 {
            background-color: #fff;
            height: 230px;
            display: flex;
            justify-content: space-between;
            padding-top: 60px;
            text-align: center;
        }

        .footer .w1240 .item {
            width: 200px;
        }

        .footer .w1240 h3 {
            font-size: 18px;
            font-weight: normal;
            margin-bottom: 36px;
        }

        .footer .serve .smallbox {
            display: inline-block;
            width: 92px;
            height: 92px;
            text-align: center;
            /* 边框线 */
            border: 1px solid #ccc;
            border-radius: 10px;
        }

        .footer .serve .smallbox span {
            color: #666;
            font-size: 14px;
        }

        .footer .serve i {
            display: block;
            margin: 6px auto;
            width: 50px;
            height: 50px;
            background-image: url('./images/wx.png');
        }

        /* 当鼠标hover时，改下背景图 */
        .footer .online-serve:hover i {
            background-image: url('./images/wx-active.png');
        }

        .footer .fans{
            cursor: pointer;
        }
        .footer .w1240 .download {
            width: 250px;
        }
        .footer .download .download-content {
            display: flex;
        }
        .footer .download img {
            width: 92px;
            height: 92px;
            padding: 5px;
            border: 1px solid #ccc;
            margin-right: 10px;
        }
        .footer .download .btn {
            margin-top: 5px;
            background-color: #34ba9a;
            color:#fff;
            padding: 10px 20px;
            border-radius: 5px;
        }
        .lastest {
            background-color: #f5f5f5;
        }

        .lastest .title {
            display: flex;
            height: 110px;
            line-height: 110px;
            justify-content: space-between;
        }
        .lastest .items {
            display: flex;
            justify-content: space-between;
        }
        .lastest .items .item {
            width: 404px;
            /* height: 360px; */
            /* transition: transform 0.5s; */
            transition: all 0.5s;

            /* box-shadow: 5px 5px 5px rgb(0, 0, 0, 0.5); */
        }
        .lastest .items .item:hover {
            transform: translateY(-5px);
            box-shadow: 1px 1px 8px rgb(0 0 0 / 50%)
        }
        .lastest .items .item img {
            width: 100%;
        }
        .lastest .item .imgarea{
            position: relative;
        }
        .lastest .item .text {
            position: absolute;
            width: 100%;
            bottom: 0;
        }
        .lastest .item .price {
            position: absolute;
            right: 0;
            top:10px
        }
        .lastest .item .textarea {
            height: 72px;
            line-height: 72px;
            background-color: #fff;
            display: flex;
        }
        .lastest .item .textarea .comment{
            margin-left: auto;
        }
        .lastest .item .textarea span {
            padding: 0 5px;
            margin: 0 5px;
        }
    </style>
</head>

<body>
    <div class="topnav">
        <div class="w1240">
            <div class="toplinks">
                <a href="">链接1</a>
                <a href="">链接2</a>
                <a href="">链接3</a>
            </div>
        </div>
    </div>
    <!-- 头部 -->
    <div class="topheader">
        <div class="w1240">
            <h1 class="logo"></h1>
            <div class="links">
                <a href="#">首页</a>
                <a href="#">首页</a>
                <a href="#">首页</a>
                <a href="#">首页</a>
                <a href="#">杂项</a>
            </div>
            <div>
                搜一搜 + 购物车
            </div>
        </div>
    </div>

    <!-- 侧边栏 + 轮播图区域 -->
    <div class="w1240 banner">
        <div class="sidebar">导航</div>
        <div class="slider">
            <img src="./images/banner1.jpg" alt="">
        </div>
        <div class="btn-right">按钮右</div>
        <div class="btn-left"> 按钮左</div>
        <div class="index">指示条</div>
    </div>

    <div class="main">
        <div class="w1240">
            <!-- 人气推荐 -->
            <div class="recommand">
                <div class="title">
                    <h3>人气推荐</h3>
                    <span>人气爆款 不容错过</span>
                </div>
                <div class="items">
                    <a href="#" class="item">
                        <img src="./images/popular_1.jpg" alt="">
                        <p class="name">特惠推荐</p>
                        <p class="desc">他们最实惠</p>
                    </a>
                    <a href="#" class="item">
                        <img src="./images/popular_1.jpg" alt="">
                        <p class="name">特惠推荐</p>
                        <p class="desc">他们最实惠</p>
                    </a>
                    <a href="#" class="item">
                        <img src="./images/popular_1.jpg" alt="">
                        <p class="name">特惠推荐</p>
                        <p class="desc">他们最实惠</p>
                    </a>
                    <a href="#" class="item">
                        <img src="./images/popular_1.jpg" alt="">
                        <p class="name">特惠推荐</p>
                        <p class="desc">他们最实惠</p>
                    </a>
                </div>

            </div>

        </div>
    </div>

    <!-- 最新专题 -->
    <div class="lastest">
        <div class="w1240">
            <div class="title">
                <h3>最新专题</h3>
                <a href="#">查看全部</a>
            </div>
            <div class="items">
                <a href="#" class="item">
                    <div class="imgarea">
                        <img src="./images/lastest1.jpg" alt="">
                        <div class="text">
                            <p>儿童3D/平面口罩 30枚</p>
                            <p>说是儿童口罩xxxxxxxxxxx</p>
                            <span class="price">￥49起</span>
                        </div>
                    </div>
                    <div class="textarea">
                        <span>9677</span>
                        <span>9674</span>
                        <span class="comment">9674</span>
                    </div>
                </a>
                <a href="#" class="item">
                    <div class="imgarea">
                        <img src="./images/lastest1.jpg" alt="">
                        <div class="text">
                            <p>儿童3D/平面口罩 30枚</p>
                            <p>说是儿童口罩xxxxxxxxxxx</p>
                            <span class="price">￥49起</span>
                        </div>
                    </div>
                    <div class="textarea">
                        <span>9677</span>
                        <span>9674</span>
                        <span class="comment">9674</span>
                    </div>
                </a>
                <a href="#" class="item">
                    <div class="imgarea">
                        <img src="./images/lastest1.jpg" alt="">
                        <div class="text">
                            <p>儿童3D/平面口罩 30枚</p>
                            <p>说是儿童口罩xxxxxxxxxxx</p>
                            <span class="price">￥49起</span>
                        </div>
                    </div>
                    <div class="textarea">
                        <span>9677</span>
                        <span>9674</span>
                        <span class="comment">9674</span>
                    </div>
                </a>
            </div>
        </div>
    </div>

    <div class="footer">
        <div class="w1240">
            <div class="item serve">
                <h3>客户服务</h3>
                <a href="#" class="smallbox online-serve">
                    <i></i>
                    <span>在线服务</span>
                </a>
                <div class="smallbox">
                    <img src="./images/wx.png" />
                    <span>问题反馈</span>
                </div>
            </div>
            <div class="item fans">
                <h3>关注我们</h3>
                在线服务
                问题反馈
            </div>
            <div class="item download">
                <h3>下载APP</h3>
                <div class="download-content">
                    <img src="./images/qcode.png"/>

                    <div>
                        <p>扫描二维码</p>
                        <p>立马下载APP</p>
                        <div class="btn">下载页面</div>
                    </div>
                </div>
            </div>
            <div class="item tel">
                <h3>服务热线</h3>
                扫描二维码
                立马下载APP
            </div>
        </div>
    </div>
</body>

</html>